package com.kuang.sjms;
import lombok.Data;

/**
 * @ClassName SalesMan
 * @Description: TODO
 * @Author: Sunny
 * @Create: 2023-06-14 17:23
 * @Version 1.0
 **/
// @Builder
@Data
public class SalesMan {
    //持有抽象策略角色的引用
    private Strategy strategy;

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    //向客户展示促销活动
    public void salesManShow(){
        strategy.show();
    }

}